let env = {
  version: process.env.APP_VERSION,        //  版本号  打包：node build/build.js --version=1.1.0 env=prod wx
  env: process.env.NODE_ENV == 'production' ? process.env.APP_ENV : 'test',  //  dev test prod (开发时 接口环境变量可自定义，打包时 接口环境变量根据脚本获取)
  platform: mpvuePlatform,  //  wx微信 tt头条 swan百度 my支付宝蚂蚁
  apiBaseUrl: '',           //  api地址
  backUrlBase: '',          //  backurl base地址
  srcBase: '',              //  webview src base地址
  amapKey: '3ab235680868021aacbbc215a8370f1a', //'e6f9a2243c38541d09b638b2445d89c2', //'59259444a8b786e9f12df1847cd5b6f9',    //  高德地图key
  healthWXBaseUrl: '',    //  健康社区页面路径
}

if (env.env == 'dev') {
  env.apiBaseUrl = 'https://mall-test.medtreecare.com' //'http://10.2.99.139:8080'
  env.backUrlBase = 'https://mall-test.medtreecare.com/ysmall/#' //`http://mall.iot-tech.site/guoda2/#`
  env.srcBase = 'https://mall-test.medtreecare.com/ysucenter/weMini/index' //'http://mall.iot-tech.site/ucenter/weMini/index'
  env.healthWXBaseUrl = 'http://healthwx.sinopharmgroup.net/wxnewmember/#'
  // env.healthWXBaseUrl = 'http://healthwx.sinopharmgroup.net/wxtest/#'
  env.liveBaseUrl = 'https://mall-test.medtreecare.com/gdmallLive/#'
} else if (env.env == 'test') {
  env.apiBaseUrl = 'https://mall-test.medtreecare.com'// 'http://mall.iot-tech.site',//'http://101.230.192.92'  //
  env.backUrlBase = 'https://mall-test.medtreecare.com/ysmall/#' //`http://mall.iot-tech.site/guoda2/#`
  env.srcBase = 'https://mall-test.medtreecare.com/ysucenter/weMini/index' //'http://mall.iot-tech.site/ucenter/weMini/index'
  env.healthWXBaseUrl = 'http://healthwx.sinopharmgroup.net/wxnewmember/#'
  env.liveBaseUrl = 'https://mall-test.medtreecare.com/gdmallLive/#'

} else {
  env.apiBaseUrl = 'https://mall-test.medtreecare.com' //'https://guodadrugstores.cn'
  env.backUrlBase = `https://mall-test.medtreecare.com/ysmall/#`
  env.srcBase = 'https://mall-test.medtreecare.com/ysucenter/weMini/index' //'https://guodadrugstores.cn/ucenter/weMini/index'
  env.healthWXBaseUrl = 'https://careuwx.sinopharmholding.com/wxnewmember/#'
  // env.healthWXBaseUrl = 'https://careuwx.sinopharmholding.com/wxtest/#'
  env.liveBaseUrl = 'https://mall-test.medtreecare.com/gdmallLive/#'

}

export default env
